package com.rnkrsoft.suyan.config.server.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.sql.DataSource;

@Controller
public class IndexController {
    @Autowired
    DataSource dataSource;
    @RequestMapping({"","/"})
    public ModelAndView index(){
        System.out.println(dataSource);
        return new ModelAndView("index");
    }
}
